package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: happyiu
 * Date: 2021-11-23
 * Time: 20:36
 */

abstract class Shape {
    public int a;//拥有成员变量
    public  void func(){
        //拥有成员方法
        System.out.println("测试来了！");
    }
    abstract public void draw();
}

final abstract class A extends Shape{
    //可以被继承
    //可以不重写
}

class B extends A{
    @Override
    public void draw() {
        //还是得写上
        System.out.println("⭐");
    }
}



public class TestDemo {

    public static void main(String[] args) {
//        Shape shape = new Shape();
    }
}
